package dbobjects;

import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DatabaseObject;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 27.11.2008
 * Time: 2:36:30
 */
@DOTable(table = "db_object_hierarchy", pk = "id")
public class DBObjectHierarchy extends DatabaseObject {
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "root_id")
    private Integer rootId;
    @DOField(column = "object_id")
    private Integer objectId;
    @DOField(column = "hierarchy_level")
    private Integer level;
    @DOField(column = "hierarchy")
    private Integer hierarchy;

    public DBObjectHierarchy() {
        this.id = UNASSIGNEDINT;
        this.rootId = UNASSIGNEDINT;
        this.objectId = UNASSIGNEDINT;
        this.level = UNASSIGNEDINT;
        this.hierarchy = UNASSIGNEDINT;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRootId() {
        return rootId;
    }

    public void setRootId(Integer rootId) {
        this.rootId = rootId;
    }

    public Integer getObjectId() {
        return objectId;
    }

    public void setObjectId(Integer objectId) {
        this.objectId = objectId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getHierarchy() {
        return hierarchy;
    }

    public void setHierarchy(Integer hierarchy) {
        this.hierarchy = hierarchy;
    }
}
